package com.qyhl.module_practice.substreet.fragment;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeListBean;

import java.util.List;

public class SubStreetPresenter implements SubStreetContract.SubStreetPresenter {
    private SubStreetContract.SubStreetView mView;
    private SubStreetModel mModel;

    public SubStreetPresenter(SubStreetContract.SubStreetView mView) {
        this.mView = mView;
        this.mModel = new SubStreetModel(this);
    }


    @Override
    public void getList(String id, String type, String page) {
        mModel.getList(id, type, page);
    }

    @Override
    public void setList(List<PracticeListBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
